// 后端api管理

export const systemAPI = {
  login: '/login',
  upload: `${process.env.VUE_APP_ImageServiceURL}/upload`
}

export const userAPI = {
  institutions: id => `/institutions/get/${id}`,
  getInstitutionServices: `/InstitutionServices/get/by/institution/status`,
  InstitutionServices: id => `/InstitutionServices/get/${id}`,
  getOrdersListByUserId: '/orders/list/by/user/id',
  consultationRequest: id => `/orders/${id}`,
  searchFrontDoctor: 'users/searchFrontDoctor',
  extraOrderWxPay: 'wx/pay/create/order/extra',
  wxQueryPay: '/wx/pay/query',
  extraProject: id => `/diagnosis/extra-project/${id}`,
  saveRegistryUser: 'users/saveRegistryUser',
  // 校验手机号是否重复接口：/checkUserPhone/{pPhone}
  checkUserPhone: pPhone => `/users/checkUserPhone/${pPhone}`,
  updateOrdersMainBody: '/orders/updateOrdersMainBody'
}

export const scienceAPI = {
  scienceFindAll: '/ArticleManagement/findAll'
}

export const discussionAPI = {
  getUnReadCountList: '/messageBoardController/message-board/getUnReadCountList',
  updateIsRead: '/messageBoardController/updateIsRead'
}
